/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.musictalk.model.business;

import com.musictalk.view.ChatFrame;
import java.util.HashMap;

/**
 *
 * @author AIDEN
 */
public class ManageChat {

    private static HashMap<String,ChatFrame> chatMap = new HashMap<String,ChatFrame>();

    public static void addChat(String chatID,ChatFrame chat){
        ManageChat.chatMap.put(chatID, chat);
    }

    public static ChatFrame getChat(String chatID){
        return (ChatFrame)ManageChat.chatMap.get(chatID);
    }

    public static HashMap<String, ChatFrame> getChatMap() {
        return chatMap;
    }
    
}
